package com.listener.mapper;

import com.listener.pojo.Pokemon;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PokemonMapper {
    @Select("select * from pokemon")
    List<Pokemon> selectPokemons();
    //插入宝可梦的基本信息
    Integer insertPokemon(Pokemon pokemon);
    //补充宝可梦详情页中获得的额外信息
    Integer supplePokemon(Pokemon pokemon);
    //更新宝可梦的图片路径为本地路径而不是网络资源
    Integer updatePokemonPicture(Pokemon pokemon);
}
